<?php
$num_rows=$this->ci->user_model->get(array('name' => $user, 'passwd' => $passwd))->num_rows();
if ($num_rows>0) {
	return 1;
	
} else return 0;

